import {
    Registry
} from "./registry_module.js";


if ($('#registry')[0]) { //若存在元素，$('#registry')[0]会返回该元素的原生js元素对象,若不存在则返回undefind.
    new Registry();
}


import {
    Login
} from "./login_module.js";

if ($('#login')[0]) {
    new Login();
}



import {
    Indexhead,
    Banner,
    Indexmain,
} from "./index_module.js";



if ($('#index')[0]) {
    new Indexhead();
    new Banner();
    new Indexmain();
}

import {
    List
} from "./list_module.js";

if ($('#list')[0]) {
    new List();
}


import {
    Detail
} from "./detail_module.js";

if ($('#detail')[0]) {
    new Detail();
}

import {
    Cartlist
} from "./cartlist_module.js";

if ($('#cartlist')[0]) {
    new Cartlist();
}